import request from '@/libs/request'
//代理管理
export function agent_index(data) {
  return request.get('agent/agent/index', data)
}
export function agent_intive(data) {
  return request.post(`agent/agent/invite`,data)
}
export function agent_add_post(data) {
  return request.post('agent/agent/add', data)
}
export function agent_edit_post(data) {
  return request.post('agent/agent/edit', data)
}
export function agent_reset(data) {
  return request.post('agent/agent/reset', data)
}
export function agent_export(data) {
  return request.post('agent/agent/export', data)
}
export function relation_index(data) {
  return request.get('agent/relation/index', data)
}

export function draw_export(data) {
  return request.get('agent/draw/export', data)
}

// 同步数据列表
export function agent_goodsMbLis(data) {
  return request.get('agent/agent/goodsMbList', data)
}
// 同步数据列表
export function agent_goodssync(data) {
  return request.post('agent/agent/goodssync', data)
}
export function agent_recharge_post(data) {
  return request.post('agent/agent/recharge', data)
}

//代理商品管理
export function agoods_index(data) {
  return request.get('agent/agoods/index', data)
}
export function agoods_edit(data) {
  return request.get('agent/agoods/edit', data)
}

export function agoods_export(data) {
  return request.get('agent/agoods/export', data)
}

//余额记录
export function mlog_index(data) {
  return request.get('agent/mlog/index', data)
}

//提现管理
export function draw_index(data) {
  return request.get('agent/draw/index', data)
}
export function draw_edit(data) {
  return request.get('agent/draw/edit', data)
}
export function draw_pay(data) {
  return request.post('agent/draw/pay', data)
}
export function draw_stj(data) {
  return request.get('agent/draw/stj', data)
}

//获取支付方式
export function draw_payments_get(data) {
  return request.get('agent/draw/lists', data)
}

//api收单
export function sapi_index(data) {
  return request.get('agent/sapi/index', data)
}
export function sapi_add_post(data) {
  return request.post('agent/sapi/add', data)
}
export function sapi_edit_post(data) {
  return request.post('agent/sapi/edit', data)
}
export function sapi_getSecret(data) {
  return request.get('agent/sapi/getSecret', data)
}

export function sapi_list(data) {
  return request.get('sapi/index', data)
}
export function sapi_edit_tt(data) {
  return request.post('sapi/edit', data)
}
export function agent_fee_muban(data) {
  return request.get('passage/muban/agentMuban', data)
}

export function mlog_export(data) {
  return request.get('agent/mlog/export',data)
}
export function mlog_export_csv(data) {
  return request.get('agent/mlog/exportcsv',data)
}
export function lable_list(data) {
  return request.get('passage/lable/list',data)
}

export function dy_index(data) {
  return request.get('agent/dy/index',data)
}

export function dy_add(data) {
  return request.post('agent/dy/add',data)
}
export function dy_edit(data) {
  return request.post('agent/dy/edit',data)
}
